package com.itheima.service;

import com.github.pagehelper.Page;
import com.itheima.pojo.Comment;
import com.itheima.pojo.User;

import java.util.Map;

public interface CommentService {
    Integer add(Comment comment);

    Integer delete(Comment comment);

    Integer edit(Comment comment);

    Page<Comment> getList(Comment comment);
	 int findCountByDay(String day);
    /**
     * 关闭评论
     * @param userUid
     * @return
     */
    void closeEmailNotification(String userUid);

    /**
     * 获取评论列表和回复
     * @param user
     * @return
     */
    Comment getListByUser(User user);

    /**
     * 举报
     * @param comment
     * @param username
     * @return
     */
    Integer report(Comment comment, String username,String content);
}
